package com.tengju.data.infrastructure.persistence.mybatis.mapper.tengju.custom;

import com.tengju.data.infrastructure.persistence.mybatis.dataobject.DataAchievementBonusDateConfigDO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

public interface DataAchievementBonusDateConfigMapper {

    DataAchievementBonusDateConfigDO getByDataKeyAndConfigType(@Param("dataKey") String dataKey,
                                                               @Param("configType") Integer configType);

    List<DataAchievementBonusDateConfigDO> getByConfigTypeAndCurDate(@Param("configType") Integer configType,
                                                                     @Param("curDate") String curDate);

    List<DataAchievementBonusDateConfigDO> listConfig(@Param("curDate") LocalDate curDate,
                                                      @Param("configType") int configType);

    List<DataAchievementBonusDateConfigDO> listByDateKey(@Param("dataKey") String dataKey);

    void batchInsert(@Param("records") List<DataAchievementBonusDateConfigDO> records);

}
